package com.wuneng.commonlibrary.base;


import com.wuneng.commonlibrary.net.RequestCallback;



/**
 * Created by 天地 on 2018/8/16.
 */

public abstract class BasePresenter implements RequestCallback {


    public abstract BaseView getBaseView();



    @Override
    public void onRequestSuccess(int tag, Object o) {

    }

    @Override
    public void onRequestFail(int tag, String msg) {
        getBaseView().showToast(msg);
    }

    @Override
    public void onRequestError(int tag) {
        getBaseView().showToast("请求失败，请稍后再试");
    }
}
